package conf

import (
	"os"
	"path/filepath"
)

func ProcessPath(p string) (string, error) {
	if abs, err := filepath.Abs(p); err != nil {
		return "", nil
	} else {
		if _, err = os.Stat(abs); os.IsNotExist(err) {
			return "", err
		}
		return abs, nil
	}
}
